package routers

import (
	"github.com/gin-gonic/gin"
	"my-gin-tiktok/app/controllers"
	"my-gin-tiktok/app/middlewares"
)

func InitRelationRouter(router *gin.RouterGroup) {
	relation := router.Group("relation")
	relation.Use(middlewares.JWTAuthMiddleware())
	relation.POST("/action", controllers.RelationAction)
	relation.GET("/follows", controllers.FollowList)
	relation.GET("/followers", controllers.FollowerList)
	return
}
